package com.erp.service.inventoryproduct.impl;

import com.erp.domain.ErpInventoryProduct;
import com.erp.mapper.inventoryproduct.InventoryProductMapper;
import com.erp.service.inventoryproduct.IInventoryProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * --- 代码敲对！ ---
 *
 * @author CCCccc
 * @create 2025/9/5
 * 备注：库存商品业务层实现类
 */
@Service
public class InventoryProductServiceImpl implements IInventoryProductService {
    // 自动注入
    @Autowired
    private InventoryProductMapper inventoryProductMapper;
    // 查询库存商品信息
    @Override
    public List<ErpInventoryProduct> list(ErpInventoryProduct erpInventoryProduct) {
        return inventoryProductMapper.list(erpInventoryProduct);
    }
    // 更新库存商品信息
    @Override
    public int update(ErpInventoryProduct erpInventoryProduct) {
        return inventoryProductMapper.update(erpInventoryProduct);
    }
}
